package bill_management

import "github.com/gin-gonic/gin"

func BillViewInit(e *gin.Engine) {
	view := NewBillView()
	//init url
	billURLInit(e, view)

}

func billURLInit(e *gin.Engine, view *BillView) {
	e.GET("/api/bill/search", view.searchBillView)
	e.POST("/api/bill/create", view.createBillView)
	e.POST("/api/bill/update", view.updateBillView)
	e.POST("/api/bill/delete", view.deleteBillView)
	e.GET("/api/bill/detail", view.detailBillView)

}
